package cn.ording.entity;

import java.util.HashSet;
import java.util.Set;


/**
 * TTable entity. @author MyEclipse Persistence Tools
 */

public class TTable  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Integer num;
     private Integer state;
     private Set orderings = new HashSet(0);
     private Set bookings = new HashSet(0);


    // Constructors

    /** default constructor */
    public TTable() {
    }

	/** minimal constructor */
    public TTable(Integer num, Integer state) {
        this.num = num;
        this.state = state;
    }
    
    /** full constructor */
    public TTable(Integer num, Integer state, Set orderings, Set bookings) {
        this.num = num;
        this.state = state;
        this.orderings = orderings;
        this.bookings = bookings;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNum() {
        return this.num;
    }
    
    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }

    public Set getOrderings() {
        return this.orderings;
    }
    
    public void setOrderings(Set orderings) {
        this.orderings = orderings;
    }

    public Set getBookings() {
        return this.bookings;
    }
    
    public void setBookings(Set bookings) {
        this.bookings = bookings;
    }
   








}